package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.sys.Gg;

import javax.persistence.*;

/**
 * 说明：合同明细
 * 包:        com.hnkywl.sts.entity.htgl
 * 类描述:    合同明细
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_HTMX")
public class Htmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqHtmx", allocationSize = 1, sequenceName = "SEQ_BIZ_HTMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqHtmx")
    private Long id;

    /**
     * 物资
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "WZ_ID")
    private Gg wzgg;

    /**
     * 产地
     */
    @ManyToOne
    @JoinColumn(name = "SJZDZ_CD_ID")
    private Sjzdz cd;

    /**
     * 长宽
     */
    private String ck;

    /**
     * 记重方式
     */
    @ManyToOne
    @JoinColumn(name = "SJZDZ_JZFS_ID")
    private Sjzdz jzfs;

    /**
     * 件数
     */
    private Double sbjs;

    /**
     * 数量
     */
    private Double sbsl;

    /**
     * 含税价
     */
    private Double hsj;

    /**
     * 不含税价
     */
    private Double bhsj;

    /**
     * 含税金额
     */
    private Double hsje;

    /**
     * 牌号
     */
    private String ph;

    /**
     * 交提货时间及数量
     */
    private String jthsjsl;

    /**
     * 备注
     */
    private String bz;

    /**
     * 合同
     */
    @ManyToOne
    @JoinColumn(name = "HT_ID")
    private Ht ht;

    /**
     * 保供合同的明细ID
     */
    private Long contractDetailId;

    /**
     * 状态 ybc:已保存  yzz:已终止
     *
     * @return
     */
    private String zt = "ybc";

    /**
     * 明细行序号
     */
    private Long mxh;

    /**
     * 销售合同子项号
     */
    private String xsxt_xsdh;

    /**
     * 特点：颜色、缺陷
     */
    private String spec;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getXsxt_xsdh() {
        return xsxt_xsdh;
    }

    public void setXsxt_xsdh(String xsxt_xsdh) {
        this.xsxt_xsdh = xsxt_xsdh;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Gg getWzgg() {
        return wzgg;
    }

    public void setWzgg(Gg wzgg) {
        this.wzgg = wzgg;
    }

    public Ht getHt() {
        return ht;
    }

    public void setHt(Ht ht) {
        this.ht = ht;
    }

    public Double getSbjs() {
        return sbjs;
    }

    public void setSbjs(Double sbjs) {
        this.sbjs = sbjs;
    }

    public Sjzdz getCd() {
        return cd;
    }

    public void setCd(Sjzdz cd) {
        this.cd = cd;
    }

    public String getCk() {
        return ck;
    }

    public void setCk(String ck) {
        this.ck = ck;
    }

    public Sjzdz getJzfs() {
        return jzfs;
    }

    public void setJzfs(Sjzdz jzfs) {
        this.jzfs = jzfs;
    }

    public Double getSbsl() {
        return sbsl;
    }

    public void setSbsl(Double sbsl) {
        this.sbsl = sbsl;
    }

    public Double getHsj() {
        return hsj;
    }

    public void setHsj(Double hsj) {
        this.hsj = hsj;
    }

    public Double getBhsj() {
        return bhsj;
    }

    public void setBhsj(Double bhsj) {
        this.bhsj = bhsj;
    }

    public Double getHsje() {
        return hsje;
    }

    public void setHsje(Double hsje) {
        this.hsje = hsje;
    }

    public String getPh() {
        return ph;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    public String getJthsjsl() {
        return jthsjsl;
    }

    public void setJthsjsl(String jthsjsl) {
        this.jthsjsl = jthsjsl;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Long getContractDetailId() {
        return contractDetailId;
    }

    public void setContractDetailId(Long contractDetailId) {
        this.contractDetailId = contractDetailId;
    }

    public String getZt() {
        return zt;
    }

    public void setZt(String zt) {
        this.zt = zt;
    }

    public Long getMxh() {
        return mxh;
    }

    public void setMxh(Long mxh) {
        this.mxh = mxh;
    }
}
